Log in Register Dashboard Temp Share Shortlinks Frames API

cody - HTMLify profile

cody's Profile Picture

cody

4270 Files

632542 Views

Latest files of /cody/solygambas/html-css-javascript-projects/048-random image generator

style.css cody/solygambas/html-css-javascript-projects/048-random image generator/style.css
128 Views
0 Comments
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");

* {
box-sizing: border-box;
}

body {
font-family: "Roboto", sans-serif;
index.html cody/solygambas/html-css-javascript-projects/048-random image generator/index.html
327 Views
0 Comments
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
<title>Random Image Feed</title>
</head>
script.js cody/solygambas/html-css-javascript-projects/048-random image generator/script.js
196 Views
0 Comments
const container = document.querySelector(".container");
const unsplashURL = "https://source.unsplash.com/random/";
const rows = 5;

const getRandomNumber = () => Math.floor(Math.random() * 10) + 300;
const getRandomSize = () => `${getRandomNumber()}x${getRandomNumber()}`;

for (let i = 0; i < rows * 3; i++) {